import request from "@/utils/request";

/**
 * 网站配置列表
 * @returns {Promise<any>}
 */
export const getWebConfigList = async () => {
  return request('/admin/settings')
}

/**
 * 网站配置详情
 * @param params
 * @returns {Promise<any>}
 */
export const getWebConfigDetail = (params) => {
  return request(`/admin/settings/${params}`,  {})
}

/**
 * 网站配置修改
 * @param params
 * @returns {Promise<any>}
 */
export const editWebConfig =  (type,data) => {
  return request.put(`/admin/settings/${type}`,  {data})
}


